<script type="text/javascript">
jQuery().ready(function(){
	
	jQuery('#arrowsidemenu').accordion({
		active: false,
		header: '.parent',
		navigation: true,
		event: 'click',
		fillSpace: false,
		animated: 'easeslide'
	});

	var accordions = jQuery('#navigation');
	
	jQuery('#switch select').change(function() {
		accordions.accordion("activate", this.selectedIndex-1 );
	});
	jQuery('#close').click(function() {
		accordions.accordion("activate", -1);
	});
	jQuery('#switch2').change(function() {
		accordions.accordion("activate", this.value);
	});
	jQuery('#enable').click(function() {
		accordions.accordion("enable");
	});
	jQuery('#disable').click(function() {
		accordions.accordion("disable");
	});
	jQuery('#remove').click(function() {
		accordions.accordion("destroy");
		wizardButtons.unbind("click");
	});
});
</script>
<div class="menu"></div>
<ul id="arrowsidemenu" class="arrowsidemenu">
	<li class="menushadow"></li>
	<?php if ($this->role == 1) { ?>
	<li>
		<a class="parent" href="<?php echo $this->baseUrl("/admin/index"); ?>">Trang chủ</a>
		<ul class="menucontents">
			<li class="child"><a
				href="<?php echo $this->baseUrl("/admin/company"); ?>">Thông tin công ty</a></li>
			<li class="child"><a
				href="<?php echo $this->baseUrl("/admin/company/about/info/gioithieu"); ?>">Giới Thiệu</a></li>
			<li class="child"><a
				href="<?php echo $this->baseUrl("/admin/company/about/info/quydinh"); ?>">Quy định</a></li>
		</ul>
	</li>
	<?php 
		}
		if ($this->role == 1 || $this->role == 3) { ?>
	<li>
		<a class="parent" href="#">Tin tức</a>
		<ul class="menucontents">
			<li class="child"><a
				href="<?php echo $this->baseUrl("/admin/news/index"); ?>">Quản lý tin tức</a></li>
		</ul>
	</li>
	<?php 
		}
		if ($this->role == 1 || $this->role == 2) {
	?>
	<li>
		<a class="parent" href="#">Quản lý tin rao</a>
		<ul class="menucontents">
			<li class="child">
				<a href="<?php echo $this->baseUrl("/admin/ptrtinrao");?>">Tin rao phòng trọ </a></li>
			<li class="child">
				<a href="<?php echo $this->baseUrl("/admin/oghtinrao"); ?>">Tin rao ở ghép</a>
			</li>
		</ul>
	</li>
	<?php 
		}
		if ($this->role == 1 || $this->role == 4) {
	?>
	<li>
		<a class="parent" href="#">Quảng cáo</a>
		<ul class="menucontents">
			<li class="child">
				<a href="<?php echo $this->baseUrl('/admin/customer/index'); ?>">Quản lý khách hàng</a>
			</li>
			<li class="child">
				<a href="<?php echo $this->baseUrl('/admin/adpackage/index'); ?>">Quản lý gói cước</a>
			</li>
			<li class="child">
				<a href="<?php echo $this->baseUrl('/admin/point/index'); ?>">Quản lý điểm</a>
			</li>
			<li class="child">
				<a href="<?php echo $this->baseUrl('/admin/advertisement/index'); ?>">Quản lý quảng cáo</a>
			</li>
		</ul>
	</li>
	<?php 
		}
		if ($this->role == 1) {
	?>
	<li>
		<a class="parent" href="#">User</a>
		<ul class="menucontents">
			<li class="child">
				<a href="<?php echo $this->baseUrl('/admin/useradmin/index'); ?>">Quản lý admin</a>
			</li>
			<li class="child">
				<a href="<?php echo $this->baseUrl('/admin/user'); ?>">Quản lý user</a>
			</li>
		</ul>
	</li>
	<?php 
		}
	?>
</ul>
